﻿@model PithyDesign.Web.Views.Shared.Components.LanguageSelection.LanguageSelectionViewModel
<li class="layui-nav-item">
    <a href="javascript:void()">
        <i class="@Model.CurrentLanguage.Icon"></i>@Model.CurrentLanguage.DisplayName
    </a>
    <dl class="layui-nav-child">
        @foreach (var language in Model.Languages)
        {
            if (language.Name != Model.CurrentLanguage.Name)
            {
                <dd>
                    <a href="@Url.Action("ChangeCulture", "AbpLocalization")?cultureName=@(language.Name)&returnUrl=@(Model.CurrentUrl)">
                        <i class="@language.Icon"></i> @language.DisplayName
                    </a>
                </dd>
            }
        }
    </dl>
</li>